package mysql

import "gorm.io/gorm"

type Team struct {
	gorm.Model
	InstitutionId int    `gorm:"type:int(10);not null;comment:'组织Id'"`
	TeamName      string `gorm:"type:varchar(50);not null;comment:'团队名称'"`
	TeamNum       int    `gorm:"type:int(10);not null;comment:'团队签约人数'"`
	TeamFaction   int    `gorm:"type:int(10);not null;comment:'团队评分'"`
}

func TeamList() (result []*Team, err2 error) {
	err2 = DB.Debug().Find(&result).Error
	if err2 != nil {
		return nil, err2
	}
	return
}
